import request from '@/config/axios'

// 分页
export const orgUserPage = async (params) => {
  return await request.get({ url: '/system/org/user/page', params })
}

// 创建
export const orgUserCreate = async (data) => {
  return await request.post({ url: '/system/org/user/create', data })
}

// 更新
export const orgUserUpdate = async (data) => {
  return await request.put({ url: '/system/org/user/update', data })
}

// 获取
export const orgUserGet = async (id) => {
  return await request.get({ url: '/system/org/user/get' + `?id=${id}` })
}

// 删除
export const orgUserDelete = async (id) => {
  return await request.delete({ url: '/system/org/user/delete' + `?id=${id}` })
}
